php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#235530 - 02/07/03 12:40 PM [6.2] YASM 1.0
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Yet Another Search Mod 1.0<br /><br />credits: chillin, DaLanTech and extremebikini<br /><br />This will give you 3 new options while searching:<br />1. Display All Posts (standard and default)<br />2. Display Last Posts (like .classic I guess)<br />3. Display Main Posts (like something somewhere)<br /><br /><br />I had placed all of the changes into this post but it stretched way out and people (like myself) hate that so now the file's attached. <img src="/forum/images/graemlins/wink.gif" alt="" /><br /><br /><br />Enjoy <img src="/forum/images/graemlins/smile.gif" alt="" /><br />


Attachments
67951-yasm.6.2.txt (232 downloads)

_________________________
~Dave
ChattersOnline.com

Top
#235531 - 02/07/03 01:40 PM Re: [6.2] YASM 1.0 [Re: sjsaunders]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
Installed <img src="/forum/images/graemlins/cool.gif" alt="" /><br /><br />And now, a word from my users:<br /><br /> <img src="/forum/images/graemlins/bow.gif" alt="" />
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#235532 - 02/07/03 01:51 PM Re: [6.2] YASM 1.0 [Re: jacksonm99]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
LoL their welcome. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />For my next trick I'm pulling two sites out of one database. Stay tuned. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#235533 - 02/07/03 02:00 PM Re: [6.2] YASM 1.0 [Re: sjsaunders]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
You've just one over hundreds of die hard Classic users with this one my friend: One of the number one complaints I get from Classic users centers around the lack of a Latest Threads display. <br /><br />You rock! <img src="/forum/images/graemlins/peace.gif" alt="" />
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#235534 - 02/07/03 02:56 PM Re: [6.2] YASM 1.0 [Re: jacksonm99]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
My users have <img src="/forum/images/graemlins/bow.gif" alt="" /> JustDave for well over a year. <br /><br />They love everything he's ever made for my site. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#235535 - 02/16/03 06:22 AM Re: [6.2] YASM 1.0 [Re: Daine]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
This mod is in use here at threadsdev if you want to see it in action.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#235536 - 02/16/03 02:44 PM Re: [6.2] YASM 1.0 [Re: Daine]
Lisa_P Offline
Enthusiast

Registered: 03/09/02
Posts: 329
Loc: Michigan, USA
Is there a mod that combines or is similar to this one, but also includes the ability to search by username AND subject (at the same time) like this one http://www.threadsdev.com/threads/php/showflat.php?Cat=&Board=finished&Number=64283? (Nobody needs to make one if there isn't, I'm just wondering. <img src="/forum/images/graemlins/smile.gif" alt="" /> I prefer the ability to search by username and subject, but this is kinda neat too. <img src="/forum/images/graemlins/smile.gif" alt="" />)
_________________________
[:"red"]Lisa[/]

Top
#235537 - 02/16/03 05:48 PM Re: [6.2] YASM 1.0 [Re: JacquiL]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Thanks Dave - very nice mod.<br /><br />Ian
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#235538 - 02/16/03 06:43 PM Re: [6.2] YASM 1.0 [Re: Gorlum]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Okay - am I confused by what this mod actually does, or is there an error?<br /><br />When searching does this<br /><br />a)<br />1. Display All Posts - shows every post that has the word<br />2. Display Last Posts - shows just the last post in any thread that contains the word<br />3. Display Main Posts - shows the first post in any thread that contains the word<br /><br />or<br /><br />b)<br />1. Display All Posts - shows every post that has the word<br />2. Display Last Posts - shows only the last post if that last post actually has the word in it.<br />3. Display Main Posts - shows only the first post if that first post actually has the word in it.<br /><br />I assumed it was a) but it seems to be b) as I am getting some threads showing in the results on one option and not on another.<br /><br />Could you clarify this for me.<br /><br />Thanks <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#235539 - 02/16/03 06:53 PM Re: [6.2] YASM 1.0 [Re: Gorlum]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
I'll have to do some seaches for words and see. Will let you know. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#235540 - 02/16/03 07:00 PM Re: [6.2] YASM 1.0 [Re: sjsaunders]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Search away...... <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#235541 - 02/17/03 08:53 PM Re: [6.2] YASM 1.0 [Re: Gorlum]
chillin Offline
Journeyman

Registered: 01/26/03
Posts: 127
Loc: bend, OR USA
kewl, i got a shout out in a JustDave Mod! Definatley this is a must for .classic converts. the guy that i run my site with was crying for this one.
_________________________
i see threads people
http://www.chinooktc.com

Top
#235542 - 02/17/03 08:59 PM Re: [6.2] YASM 1.0 [Re: Gorlum]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
[]canvey said:<br />Okay - am I confused by what this mod actually does, or is there an error?<br /><br />When searching does this<br /><br />a)<br />1. Display All Posts - shows every post that has the word<br />2. Display Last Posts - shows just the last post in any thread that contains the word<br />3. Display Main Posts - shows the first post in any thread that contains the word<br /><br />or<br /><br />b)<br />1. Display All Posts - shows every post that has the word<br />2. Display Last Posts - shows only the last post if that last post actually has the word in it.<br />3. Display Main Posts - shows only the first post if that first post actually has the word in it.<br /><br />I assumed it was a) but it seems to be b) as I am getting some threads showing in the results on one option and not on another.<br /><br />Could you clarify this for me.<br /><br />Thanks <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br /> [/]<br /><br /><br />It does both a and b depending on if your searching for words or not.
_________________________
~Dave
ChattersOnline.com

Top
#235543 - 02/17/03 09:00 PM Re: [6.2] YASM 1.0 [Re: kwalenta]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Glad you like it. Maybe Rick will see this and add it in to 6.3 <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#235544 - 03/10/03 04:30 PM Re: [6.2] YASM 1.0 [Re: sjsaunders]
Allusivekudos Offline
Junior Member

Registered: 05/26/02
Posts: 378
Loc: Na
So, I'd like to set this up so that users can click a link and it automatically takes them to the 25 Last Posts within 1 day..... <br /><br />Anyone know how I write that out? The search spits it out, but I don't know what string it is........ <img src="/forum/images/graemlins/frown.gif" alt="" /><br /><br /><br />-peter

Top
#235545 - 03/10/03 04:56 PM Re: [6.2] YASM 1.0 [Re: adrienne48]
Allusivekudos Offline
Junior Member

Registered: 05/26/02
Posts: 378
Loc: Na
Nevermind.....I figured it out!<br /><br />-peter

Top
#235546 - 03/12/03 08:48 AM Re: [6.2] YASM 1.0 [Re: adrienne48]
Kel Offline
Member

Registered: 01/30/02
Posts: 246
Loc: Arizona
Here's an interesting "glitch" that I've discovered in mine...<br /><br />Page one of my search results gives me just the last post just like I've asked for but any subsequent pages (when I click the "next" button) defaults back to all posts. <br /><br />Anyone? []http://www.americanconservatives.net/ubb/graemlins/shrug.gif[/]

Top
#235547 - 03/12/03 09:18 AM Re: [6.2] YASM 1.0 [Re: Razin]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
It seems to work fine here....<br /><br />When you click "next" do you see the "displaytype" variable being passed in the URL?<br /><br />Do you have a get_input function for displaytype in dosearch.php like this:<br /><br />$displaytype = get_input("displaytype","both");<br /><br /><br />That should make it work.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#235548 - 03/12/03 09:45 AM Re: [6.2] YASM 1.0 [Re: Daine]
Kel Offline
Member

Registered: 01/30/02
Posts: 246
Loc: Arizona
Nope. That's the issue. And then if I click on "previous", it disappears as well. Where and how can I fix this? <br /> <br />And yes, I do have that line in my dosearch.php file. <br /> <br />My board is in my sigline. The Latest Threads link is in the TopNews line if you would like to see for yourself.

Top
#235549 - 03/12/03 10:25 AM Re: [6.2] YASM 1.0 [Re: Razin]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
So you don't see it in the URL?<br /><br />Well then if that isn't in the URL.... then you missed the step in dosearch.php where you modify $prevlinkstart and $nextlinkstart.<br /><br />I just checked the instructions... it's there. Check those instructions again.<br /><br />Especially this part:<br /><br />## Change this:<br /><br /><br /> $prevlinkstart = "<a href=\"{$config['phpurl']}/dosearch.php?Cat=$Cat&amp;Forum=$URLForum&amp;Words=$URLWords&amp;Match=$URLMatch&amp;Searchpage=$prevpage&amp;Limit=$Limit&amp;Old=$Old\">";<br /><br /><br />## to this:<br /><br /><br /> $prevlinkstart = "<a href=\"{$config['phpurl']}/dosearch.php?Cat=$Cat&amp;[:"red"]displaytype=$displaytype&amp;[/]Forum=$URLForum&amp;Words=$URLWords&amp;Match=$URLMatch&amp;Searchpage=$prevpage&amp;Limit=$Limit&amp;Old=$Old\">";<br /><br /><br />## Change this:<br /><br /><br /> $nextlinkstart = "<a href=\"{$config['phpurl']}/dosearch.php?Cat=$Cat&amp;Forum=$URLForum&amp;Words=$URLWords&amp;Match=$URLMatch&amp;Searchpage=$nextpage&amp;Limit=$Limit&amp;Old=$Old\">";<br /><br /><br />## to this:<br /><br /><br /> $nextlinkstart = "<a href=\"{$config['phpurl']}/dosearch.php?Cat=$Cat&amp;[:"red"]displaytype=$displaytype&amp;[/]Forum=$URLForum&amp;Words=$URLWords&amp;Match=$URLMatch&amp;Searchpage=$nextpage&amp;Limit=$Limit&amp;Old=$Old\">";<br /><br /> <br /><br />It should work fine to you once you get the variables to pass in the URL. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#235550 - 03/12/03 10:41 AM Re: [6.2] YASM 1.0 [Re: Daine]
Kel Offline
Member

Registered: 01/30/02
Posts: 246
Loc: Arizona
Hm! Very weird!... I remember changing that specifically because I remember wanting to make sure that I got the right line deleted and the right line copied and pasted. I KNOW I did it. But it's entirely possible that I was tired and didn't hit the save button before I closed the file. Who knows? Very weird that it worked on the first page but not the rest though. It works now on all pages. Thanks much... <img src="/forum/images/graemlins/smile.gif" alt="" /> <br /> <br /> <br /> <br />

Top
#235551 - 03/12/03 10:44 AM Re: [6.2] YASM 1.0 [Re: Razin]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Well the first page gets passed from the script via POST and not in the URL... additional pages are passed in the URL via GET. <img src="/forum/images/graemlins/wink.gif" alt="" /> So that's why it only worked on page 1.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#235552 - 03/16/03 09:09 PM Re: [6.2] YASM 1.0 [Re: sjsaunders]
ScottCargill Offline
Journeyman

Registered: 02/01/01
Posts: 144
Loc: Bakersfield, Ca.
Dave, what would it take to install this on a 6.1.1 version?<br /><br />SELECT t1.B_Number,t1.B_Main,t3.U_Username,t1.B_Subject,t1.B_Posted,t1.B_Board,t3.U_Color,t1.B.....<br /><br />That line is the only one that catches me as being odd, I hadn't ran into an t1,t2, or t3's ???<br /><br />I intergrated this mod into the board, and got a massive query error in dosearch.php when I ran it. It seemed to be having a problem with that line.<br /><br />
_________________________
Scott Cargill -WebMaster
East Hills Kung Fu San Soo

Top
#235553 - 06/11/03 09:37 AM Re: [6.2] YASM 1.0 [Re: DRYCARPET1]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Hi Scott,<br /><br />I don't know how I missed your reply, sorry.<br /><br />Did you solve this for your install?
_________________________
~Dave
ChattersOnline.com

Top
#235554 - 06/11/03 12:02 PM Re: [6.2] YASM 1.0 [Re: sjsaunders]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
FYI - this works in 6.3. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#235555 - 06/15/03 09:40 PM Re: [6.2] YASM 1.0 [Re: Daine]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
This seems to be broke here when trying to search for a display name. I can't recall but is there supposed to be an option "by display name" in the dropdown?
_________________________
~Dave
ChattersOnline.com

Top
#235556 - 06/15/03 11:11 PM Re: [6.2] YASM 1.0 [Re: sjsaunders]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Hmmmm....<br /><br />That was an issue in 6.2 (username serach didn't work).<br /><br />The option is there - but it doesn't work - maybe thid mod somehow captured the username search bug. <img src="/forum/images/graemlins/tongue.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#235557 - 06/16/03 01:56 AM Re: [6.2] YASM 1.0 [Re: Daine]
zarathoustra Offline
Newbie

Registered: 07/13/02
Posts: 16
Loc: Paris, France
There is another bug with YASM 1.0 in 6.3 : <br />"2. Display Last Posts (like .classic I guess)" does not work here, at ThreadsDev, and on my boards <img src="/forum/images/graemlins/frown.gif" alt="" /> .<br />For instance, you can search for "links", and see many times in the dosearch.php : "Re: TLD Bv1.5 Released - Threads Links Directory"
_________________________
MacGeneration

Top
#235558 - 06/18/03 06:46 AM Re: [6.2] YASM 1.0 [Re: nerdario]
zarathoustra Offline
Newbie

Registered: 07/13/02
Posts: 16
Loc: Paris, France
Code:
 if ($displaytype == "last") {<br />      $query = $query."\nAND B_Last_Post = B_Posted \nORDER BY B_Last_Post DESC";} 
<br /><br />does not work in dosearch.php, while :<br /><br />
Code:
 elseif ($displaytype == "main") {<br />      $query = $query."\nAND B_Number = B_Main \nORDER BY B_Posted DESC";} 
<br /><br />works <img src="/forum/images/graemlins/confused.gif" alt="" />
_________________________
MacGeneration

Top
#235559 - 06/18/03 02:24 PM Re: [6.2] YASM 1.0
TonyN Offline
Journeyman

Registered: 06/13/03
Posts: 132
Loc: Berkeley out of this world
I am really new at this, so a dumb question. I started trying to make the changes in the attachment, and doing the first one demonstrated that I don't really know how to edit .php files in windows. <br /><br />If I open it in "notepad," it's a long single string and difficult to do anything with.<br /><br />If I open it in Word, I can see the structure and insert the addition (as in the first item) or make chabges, but then when I save it as a php file, the result - as viewed again in notepad - has line breaks that Word added. I think this is OK, but want to be sure!?<br /><br />Or is there some other way I should be editing these files? (The editing done to templates through threads itself takes care of this problem.)<br /><br />I imagine I'm missing something obvious, but would appreciate some guidance. All of these files appear to basically be text files, but I'm worried because I don't know the potential significance of line breaks in the various types of files!<br /><br />Thanks - Tony (very new)

Top
#235560 - 06/18/03 04:00 PM Re: [6.2] YASM 1.0 [Re: BOOO_YAAA]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Hi,<br /><br />I use UltraEdit32 - this will take the files in question, and then convert them to a dos format.<br /><br />You can download a 30 day trial (I think) from their site www.ultraedit.com - there are other similar products available.<br /><br />I know that with txt files if I am viewing the site in IE, it will open up the txt file also in IE. If this is the case then I cut and paste to UE and work on updating the files using that.<br /><br />I also never tend to use threads to edit my templates - always prefer to do it outside.<br /><br />I would never suggest using Word, or FrontPage or anything like that as it tends to think it knows what to do - and believe me with some of these files - it don't <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#235561 - 06/19/03 01:15 AM Re: [6.2] YASM 1.0 [Re: BOOO_YAAA]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
I use CuteHTML for my text editing -very easy to use!
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#235562 - 08/12/03 03:45 PM Re: [6.2] YASM 1.0 [Re: jacksonm99]
slayer60 Offline
Junior Member

Registered: 06/14/03
Posts: 1185
Loc: New Boston, NH
I use Notetab a versitle little app. I'm using the Pro version but the free version is nice too.

Top
#235563 - 08/12/03 07:00 PM Re: [6.2] YASM 1.0 [Re: BrokenToy]
TonyN Offline
Journeyman

Registered: 06/13/03
Posts: 132
Loc: Berkeley out of this world
I just went and had a look at NoteTab, and see that the pro version has different colors for identifying tags, etc, for html, and it also has a compare files capability, but in the light version you apparently can't put the files side by side.<br /><br />Have you tried this capability? I tried Beyond Compare on some else's recommendation here, and it is excellent for comparing (i.e., putting the files side by side and highlighting differences in lines laid side by side...). For the couple of times I've needed a capability of this sort, I've REALLY needed it, and I'm just wondering if you know whether Note Tab would serve as well.<br /><br />Thanks - Tony

Top
Page 1 of 2 1 2 >



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks